package com.sina.shop.dao.carousel;

import com.sina.shop.dao.ShopDataSourceDao;
import com.sina.shop.domain.carousel.Carousel;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-02-05-14:32
 */
@Repository("carouselDao")
public class CarouselDaoImpl extends ShopDataSourceDao implements CarouselDao {

    @Override
    public List<Carousel> getCarousel() {
        String hql = "from Carousel";
        return list(hql, null, null, -1, -1);

    }
}
